<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>jq</title>
	<script src="jquery.js"></script>
</head>
<body>
	<h1>cccccccccc</h1>
	<h1>cccccccccc</h1>
	<h1>cccccccccc</h1>
	<div class="div1">
		<h1>aaaaaaaaaaaaaaaa</h1>
		<h1>aaaaaaaaaaaaaaaa</h1>
		<div class="div2">
			<h1>aaaaaaaaaaaaaaaa</h1>
			<h1>aaaaaaaaaaaaaaaa</h1>
		</div>
	</div>

	<h1>cccccccccc</h1>
	<h1>cccccccccc</h1>
	<h1>cccccccccc</h1>
	
	
</body>

<script>

	//siblings找到同级的元素
	$('.div1').siblings().css({'color':'#00f'});

</script>
</html>